<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/5/27 0027
 * Time: 9:55
 */

namespace app\admin\validate;


use think\Validate;

class Login extends Validate
{
    protected $rule = [
        'data'      =>  '',
        'account'   =>  'require|max:64',
        'password'  =>  'require|max:64',
    ];

    protected $message = [
        'account.require'       =>  '请输入账号',
        'account.max'           =>  '账号过长',
        'password.require'      =>  '请输入密码',
        'password.max'          =>  '密码过长',
    ];

    protected $scene = [
        'login' =>  ['account','password'],
        'loginout'=>['data'],
    ];
}